//
//  JDGoodsDetailModel.swift
//  DragonWallet
//
//  Created by volantPig on 2024/5/30.
//

import UIKit
import HandyJSON

class JDGoodsDetailModel: HandyJSON {

    /// 产地
    var origin: String?
    var goodsName: String?
    var soldOutTotal: Int?
    var goodsId: String?
    var salePrice: Int?
    var goodsSummary: String?
    var salePriceText: Double?
    var brand: String?
    var goodsBannerSlideImgUrl: [String]?
    var detailHtml: String?
    var goodsDetailImgUrl: String?
    
    required init() {}
}

//{
//    "origin":"日本",
//    "goodsName":"黑眼镜",
//    "soldOutTotal":0,
//    "goodsId":1,
//    "salePrice":150000,
//    "goodsSummary":"「上下一白」羊脂玉瓷素烧茶杯酒杯主人杯个",
//    "salePriceText":"150.00",
//    "brand":"上下一白",
//    "goodsBannerSlideImgUrl":["https:\\/\\/imgcps.jd.com\\/ling-cubic\\/ling4\\/lab\\/amZzL3QxLzIxMzU4MS8yMC8yMTE5My82NDY0LzYzMzE5MzNjRTQzOTEwMzc5LzZhZjVmYjEzY2IyOWZkNzkucG5n\\/5Lqs6YCJ5aW96LSn\\/5L2g5YC85b6X5oul5pyJ\\/1635187706996019201\\/cr\\/s\\/q.jpg","https:\\/\\/imgcps.jd.com\\/img-cubic\\/creative_server_cia_jdcloud\\/v2\\/2000366\\/10067923339082\\/FocusFullshop\\/CkRqZnMvdDEvMjI1Njg5LzMzLzIwNjA2LzI4NjA2OS82NjdlMDBhZkYxYmFmNjViNC9jMGM1MDZhNzg5Y2RmYzk2LnBuZxIJNC10eV8wXzU1MAI47ot6QhYKEuWMl-m8juWkmuWKn-iDvemUhRABQg0KCei0rei_h-eYvhACQhAKDOeri-WNs-aKoui0rRAGQgoKBueyvumAiRAHWMqO-veBpQI\\/cr\\/s\\/q.jpg","https:\\/\\/imgcps.jd.com\\/img-cubic\\/creative_server_cia_jdcloud\\/v2\\/2000368\\/5415700\\/FocusFullshop\\/CkJqZnMvdDEvMjQ4MDkxLzkvMTI4OTgvOTMwNzMvNjY3YjUxYTVGN2FjNjUxZGMvNzVjOWRmMjJmYjMxNzNkMi5wbmcSCTUtdHlfMF81NjACOPCLekITCg_ku4rkuJbnvJjnmb3phZIQAUIQCgznpo_liKnni4LkuqsQAkIQCgznq4vljbPmiqLotK0QBkIKCgbkvJjotKgQB1iUxsoC\\/cr\\/s\\/q.jpg"]
//}










class JDGoodsSpecModel: HandyJSON {

    var goodsId: String?
    var specificationGroupId: String?
    var specificationGroupName: String?
    var specificationList: [JDGoodsSpecDetailModel]?
    
//    {
//        "goodsId": 1,
//        "specificationGroupId": 1,
//        "specificationGroupName": "颜色",
//        "specificationList": []
//    }
    
    required init() {}
}

class JDGoodsSpecDetailModel: HandyJSON {

    var isSelected: Bool = false
    var isCanSelected: Bool = true

    var goodsId: String?
    var specificationId: String?
    var specificationName: String?
    var specificationImage: String?
    
//    {
//        "goodsId": 1,
//        "specificationId": 1,
//        "specificationName": "黑色",
//        "specificationImage": "https://d1nhio0ox7pgb.cloudfront.net/_img/g_collection_png/standard/256x256/leaf.png"
//    }
    
    required init() {}
}
